FROM zxxfreedocker/ubuntu-jdk17
MAINTAINER zxx <zxxcof@qq.com>
ENV TZ=Asia/Shanghai
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
#将当前目录中的 name.jar 复制到容器根目录中
COPY zxxLearn.jar /app.jar

#运行命令
#RUN chmod 777 -R /nacos
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
#开放端口
#EXPOSE 8848
#ENTRYPOINT ["sh","/nacos/bin/startup.sh","-m","standalone","&"]
#启动运行命令
ENTRYPOINT ["java","-jar","/app.jar","&"]

